package com.xuanyang.dormrepair.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @AUTHOR soft
 * @DATE 2019/5/19 10:55
 * @DESCRIBE 楼层房间状态
 */
@Getter
@AllArgsConstructor
public enum FloorRoomStatus {

    DISABLED("禁住", 0),
    NOPEOPLE("没人", 1),
    HASPEOPLE("有人", 2);

    @JsonValue
    private String name;

    @EnumValue
    private Integer code;
}
